package com.sxl.ocr.ocronnx.exception;

import lombok.Data;

/**
 * description:
 * author: shenxiaolong
 * date: 2021/1/27  15:03
 */
@Data
public class OCRException extends RuntimeException {

    private Integer code;
    private String errorReason;

    public OCRException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }

    public OCRException(Integer code, String msg, String errorReason) {
        super(msg);
        this.code = code;
        this.errorReason = errorReason;
    }
}
